package com.ccp.dev.im.model;

import com.ccp.dev.core.basic.model.BaseModel;

import java.util.Date;

/**
 * 群聊成员表 im_room_user
 *
 * @author y
 * @date 2020-02-17 11:39:36
 */
public class ImRoomUser extends BaseModel<ImRoomUser> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 用户ID
     */
    private String userId;
    /**
     * 群ID
     */
    private String roomId;
    /**
     * 加入时间
     */
    private Date joinTime;
    /**
     * 加入邀请人
     */
    private String joinBy;

    /**
     * 成员头像
     */
    private String avatar;

    /**
     * 成员昵称
     */
    private String username;

    /**
     * 成员签名
     */
    private String sign;

    /**
     * 群聊邀请人员Id数组
     */
    private String[] userIds;

    /**
     * 群聊邀请人员名称数组
     */
    private String[] addUserNames;
    /**
     * 是否退出群聊
     */
    private boolean signOut = false;

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoomId() {
        return this.roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public Date getJoinTime() {
        return this.joinTime;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    public String getJoinBy() {
        return this.joinBy;
    }

    public void setJoinBy(String joinBy) {
        this.joinBy = joinBy;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String[] getUserIds() {
        return userIds;
    }

    public void setUserIds(String[] userIds) {
        this.userIds = userIds;
    }

    public String[] getAddUserNames() {
        return addUserNames;
    }

    public void setAddUserNames(String[] addUserNames) {
        this.addUserNames = addUserNames;
    }

    public boolean isSignOut() {
        return signOut;
    }

    public void setSignOut(boolean signOut) {
        this.signOut = signOut;
    }

    @Override
    public String toString() {
        return "ImRoomUser{" +
                "id='" + id + "," +
                "userId='" + userId + "," +
                "roomId='" + roomId + "," +
                "joinTime='" + joinTime + "," +
                "joinBy='" + joinBy +
                '}';
    }

}
